plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
↳ QTRS
↳ Overlay + Local Confluence
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
TIMES(s(x), y) → PLUS(y, times(x, y))
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
TOWER(x, y) → TOWERITER(0, x, y, s(0))
TIMES(s(x), y) → TIMES(x, y)
HELP(false, c, x, y, z) → EXP(y, z)
TOWERITER(c, x, y, z) → HELP(ge(c, x), c, x, y, z)
EXP(x, s(y)) → EXP(x, y)
TOWERITER(c, x, y, z) → GE(c, x)
EXP(x, s(y)) → TIMES(x, exp(x, y))
GE(s(x), s(y)) → GE(x, y)
PLUS(s(x), y) → PLUS(x, y)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
TIMES(s(x), y) → PLUS(y, times(x, y))
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
TOWER(x, y) → TOWERITER(0, x, y, s(0))
TIMES(s(x), y) → TIMES(x, y)
HELP(false, c, x, y, z) → EXP(y, z)
TOWERITER(c, x, y, z) → HELP(ge(c, x), c, x, y, z)
EXP(x, s(y)) → EXP(x, y)
TOWERITER(c, x, y, z) → GE(c, x)
EXP(x, s(y)) → TIMES(x, exp(x, y))
GE(s(x), s(y)) → GE(x, y)
PLUS(s(x), y) → PLUS(x, y)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GE(s(x), s(y)) → GE(x, y)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GE(s(x), s(y)) → GE(x, y)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GE(s(x), s(y)) → GE(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
PLUS(s(x), y) → PLUS(x, y)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
PLUS(s(x), y) → PLUS(x, y)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
PLUS(s(x), y) → PLUS(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
TIMES(s(x), y) → TIMES(x, y)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
TIMES(s(x), y) → TIMES(x, y)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
TIMES(s(x), y) → TIMES(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
EXP(x, s(y)) → EXP(x, y)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
EXP(x, s(y)) → EXP(x, y)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
EXP(x, s(y)) → EXP(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
TOWERITER(c, x, y, z) → HELP(ge(c, x), c, x, y, z)
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
tower(x, y) → towerIter(0, x, y, s(0))
towerIter(c, x, y, z) → help(ge(c, x), c, x, y, z)
help(true, c, x, y, z) → z
help(false, c, x, y, z) → towerIter(s(c), x, y, exp(y, z))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
TOWERITER(c, x, y, z) → HELP(ge(c, x), c, x, y, z)
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
tower(x0, x1)
towerIter(x0, x1, x2, x3)
help(true, x0, x1, x2, x3)
help(false, x0, x1, x2, x3)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
TOWERITER(c, x, y, z) → HELP(ge(c, x), c, x, y, z)
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))
(1) (HELP(ge(x4, x5), x4, x5, x6, x7)=HELP(false, x8, x9, x10, x11) ⇒ HELP(false, x8, x9, x10, x11)≥TOWERITER(s(x8), x9, x10, exp(x10, x11)))
(2) (ge(x4, x5)=false ⇒ HELP(false, x4, x5, x6, x7)≥TOWERITER(s(x4), x5, x6, exp(x6, x7)))
(3) (false=false ⇒ HELP(false, 0, s(x25), x6, x7)≥TOWERITER(s(0), s(x25), x6, exp(x6, x7)))
(4) (ge(x26, x27)=false∧(∀x28,x29:ge(x26, x27)=false ⇒ HELP(false, x26, x27, x28, x29)≥TOWERITER(s(x26), x27, x28, exp(x28, x29))) ⇒ HELP(false, s(x26), s(x27), x6, x7)≥TOWERITER(s(s(x26)), s(x27), x6, exp(x6, x7)))
(5) (HELP(false, 0, s(x25), x6, x7)≥TOWERITER(s(0), s(x25), x6, exp(x6, x7)))
(6) (HELP(false, x26, x27, x6, x7)≥TOWERITER(s(x26), x27, x6, exp(x6, x7)) ⇒ HELP(false, s(x26), s(x27), x6, x7)≥TOWERITER(s(s(x26)), s(x27), x6, exp(x6, x7)))
(7) (TOWERITER(s(x12), x13, x14, exp(x14, x15))=TOWERITER(x16, x17, x18, x19) ⇒ TOWERITER(x16, x17, x18, x19)≥HELP(ge(x16, x17), x16, x17, x18, x19))
(8) (TOWERITER(s(x12), x13, x14, x19)≥HELP(ge(s(x12), x13), s(x12), x13, x14, x19))
POL(0) = 0
POL(HELP(x1, x2, x3, x4, x5)) = -1 - x1 - x2 + x3
POL(TOWERITER(x1, x2, x3, x4)) = -1 - x1 + x2
POL(c) = -2
POL(exp(x1, x2)) = 0
POL(false) = 0
POL(ge(x1, x2)) = 0
POL(plus(x1, x2)) = x2
POL(s(x1)) = 1 + x1
POL(times(x1, x2)) = 1
POL(true) = 1
The following pairs are in Pbound:
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
The following rules are usable:
HELP(false, c, x, y, z) → TOWERITER(s(c), x, y, exp(y, z))
false → ge(0, s(x))
true → ge(x, 0)
ge(x, y) → ge(s(x), s(y))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
↳ QDP
↳ DependencyGraphProof
TOWERITER(c, x, y, z) → HELP(ge(c, x), c, x, y, z)
ge(x, 0) → true
ge(0, s(x)) → false
ge(s(x), s(y)) → ge(x, y)
exp(x, 0) → s(0)
exp(x, s(y)) → times(x, exp(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
exp(x0, 0)
exp(x0, s(x1))
ge(x0, 0)
ge(0, s(x0))
ge(s(x0), s(x1))